
#include "Course.h"

Course::Course(const string &name) {
    setCourseName(name);
}

void Course::setCourseName(const string &name) {
    coursename = name;
}

void Course::setCourseId(const string &id) {
    courseid = id;
}

string Course::getCourseName() const {
    return coursename;
}

string Course::getCourseId() const {
    return courseid;
}

ostream &operator<<(ostream &output, const Course &course) {
    output << course.courseid << course.coursename;
    return output;
}
istream &operator>>(istream &input, Course &course) {
    input >> course.courseid >> course.coursename;
    return input;
}
